import requests
# baidu
url = r'http://www.baidu.com/'
response = requests.request('GET',url)
print(response.status_code)
response.encoding = 'utf-8'
print(response.text)

# 豆瓣
url1 = r'https://movie.douban.com/'
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0',
}
response = requests.get(url1,headers=headers)
print(response.status_code)
response.encoding = 'utf-8'
print(response.text)
# ASMS
url2 = r'http://172.16.22.108:8080/bsams/front/login.do'
response = requests.get(url2)
print(response.status_code)
print(response.text)